package com.kensure.shike.user.model;

import com.kensure.shike.user.service.SKRoleService;

import co.kensure.frame.BaseInfo;

/**
 * 用户的产出
 * 
 * @author fankd created on 2018-9-2
 * @since
 */
public class SKUserChanChu extends BaseInfo {

	private static final long serialVersionUID = 3545276994084105527L;

	/***/
	private Long id;

	/** 本周产出 */
	private Double benzhou;

	/** 本月产出 */
	private Double benyue;

	/** 累计产出 */
	private Double leiji;

	/** 成员数 */
	private Integer chengyuan;

	/** 会员数 */
	private Integer huiyuan;

	/** 会员级别 */
	private String levelCode;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Double getBenzhou() {
		return benzhou;
	}

	public void setBenzhou(Double benzhou) {
		this.benzhou = benzhou;
	}

	public Double getBenyue() {
		return benyue;
	}

	public void setBenyue(Double benyue) {
		this.benyue = benyue;
	}

	public Double getLeiji() {
		return leiji;
	}

	public void setLeiji(Double leiji) {
		this.leiji = leiji;
	}

	public Integer getChengyuan() {
		return chengyuan;
	}

	public void setChengyuan(Integer chengyuan) {
		this.chengyuan = chengyuan;
	}

	public Integer getHuiyuan() {
		return huiyuan;
	}

	public void setHuiyuan(Integer huiyuan) {
		this.huiyuan = huiyuan;
	}

	public String getLevelCode() {
		return levelCode;
	}

	public void setLevelCode(String levelCode) {
		this.levelCode = levelCode;
	}
	
	public String getLevelCodeDesc() {
		String des = "非会员";		
		if(levelCode != null){
			SKRole role = SKRoleService.selectRoleByCode(levelCode);
			if(role != null){
				des = role.getName();
			}
		}
		return des;
	}

}
